package com.dimples.dd.system.model.query;

import cn.hutool.core.date.DatePattern;
import com.dimples.dd.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/10/30
 */
@Schema(description = " 短信模板分页 Query")
@Data
public class SmsTemplatePageQuery extends PageParam {

    @Schema(description = "短信签名", example = "1")
    private Integer type;

    @Schema(description = "开启状态", example = "1")
    private Integer status;

    @Schema(description = "模板编码，模糊匹配", example = "yanzhengma")
    private String code;

    @Schema(description = "模板内容，模糊匹配", example = "验证码 {code}, 有效时间30分钟")
    private String content;

    @Schema(description = "短信 API 的模板编号，模糊匹配", example = "10241024")
    private String apiTemplateId;

    @Schema(description = "短信渠道编号", example = "1024")
    private Long channelId;

    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    @Schema(description = "创建时间")
    private LocalDateTime[] createTime;
}
